package com.xiangban.yanglaodajie_platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/3/17 16:07
 */
@Data
@ApiModel("购物车")
@TableName("Shopping_cart")
public class ShoppingCart {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "分类id")
    private Integer classifyId;

    @ApiModelProperty(value = "商家id")
    private Integer shopId;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "状态（判断是否点+）1:加商品，-1：减商品")
    private Integer status;

    @ApiModelProperty(value = "商品图")
    private String goodsLogo;

    @ApiModelProperty(value = "商家logo")
    private String shopLogo;

}